﻿using System.Linq;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;

namespace BlamanticUI.Components.DataBindings;

public partial class GridViewColSpanTemplateField:GridViewTemplateBase
{

    protected override void BuildRenderTree(RenderTreeBuilder builder)
    {
        builder.OpenComponent<TableCell>(0);
        builder.AddAttribute(0, "colspan", ParentComponent.ChildComponents.Count());
        AddChildContent(builder, 1);
        builder.CloseComponent();
    }
}
